package com.yilin.tms.truck.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yilin.tms.core.application.PageData;
import com.yilin.tms.core.entity.truck.TruckSource;
import com.yilin.tms.core.entity.user.account.Account;

/**
 * 车源服务
 */
public interface ITruckSourceService extends IService<TruckSource> {


    PageData<TruckSource> getTruckSourcePage(Account loginUser, TruckSource query, Integer page, Integer limit);

    TruckSource getTruckSourceDetail(Account loginUser, String truckSourceId);

    PageData<TruckSource> getPublicTruckSourcePage(TruckSource query, Integer page, Integer limit);

    void saveTruckSource(Account loginUser, TruckSource param,String[] vehicleIds);


    TruckSource getTruckSourceByVehicleId(String vehicleId);
}
